#!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = '汤小洋'

'''
方式1
'''
# import py04_模块.mymodule
# print(py04_模块.mymodule.a)  # 调用模块中的变量
# print(py04_模块.mymodule.plus(3, 5))  # 调用模块中的函数

# import py04_模块.mymodule as m
# print(m.plus(2, 4))


'''
方式2
'''
# from py04_模块 import mymodule
# print(mymodule.b)
# print(mymodule.minus(8,2))

# from py04_模块.mymodule import b, plus, minus
# from py04_模块.mymodule import *
# print(b)
# print(plus(4,  5))
# print(minus(6, 2))

from py04_模块.mymodule import Calculator

print(Calculator.sum(2, 6, 4))
